package com.indusfo.spc.mapper;

import com.indusfo.spc.pojo.Plan;
import com.indusfo.spc.pojo.ProcessVer;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface PlanMapper {

    int updateByPrimaryKey(@Param("ids") Integer[] lProductionPlanId, @Param("lDataState") Integer lDataState);

    int insert(Plan plan);

    int updateByPrimaryKey(Plan plan);

    Plan selectByPrimaryKey(Integer lProductionPlanId);

    List<Plan> queryPlanList(Plan plan);

    int countPlan(Plan plan);

    int lExecuteStateChange(@Param("lProductionPlanId") Integer[] lProductionPlanId,@Param("lExecuteState") Integer lExecuteState);

    ProcessVer getVersion(@Param("lProduct") Integer lProduct);

    int checkNoRepeat(Plan plan);

    int updatePlan(Plan plan);

    int updateLastExecuteState(@Param("lProductionPlanId") Integer lProductionPlanId,@Param("lExecuteState") Integer lExecuteState);

    int updateByLastExecuteState(@Param("ids") Integer[] ids);






}